//tab面板
function qhtab(tab,con,tab_c_css,tab_n_css,no) {  
    $(tab).each(function(i){  
        if(i == no)  
        {  
            $(this).addClass(tab_c_css);  
        }else  
        {  
            $(this).removeClass(tab_c_css);  
            $(this).addClass(tab_n_css);  
        }  
    });  
    if (con)  
    {  
        $(con).each(function(i){  
            if(i == no)  
            {  
                $(this).show();  
            }else  
            {  
                $(this).hide();  
            }  
        });  
    }  
} 


//滚动代码
window.onload=function(){
//  鼠标经过变换图片
   $('.dex_kehum2 img').each(function(i){
    $(this).mouseover(function(){
       $(this).attr("src",$(this).attr('data-bian'));
    });
    $(this).mouseout(function(){
      $(this).attr("src",$(this).attr('data-yuan'));;
    });
  });


  var scroll_div = document.getElementById("dex_lvfcm2");
  var scroll_begin = document.getElementById("dex_lvfcm2z1");
  var scroll_end = document.getElementById("dex_lvfcm2z2");
  scroll_end.innerHTML=scroll_begin.innerHTML;
  var MyMar=null;
  MyMar=setInterval(function(){
    if(scroll_div.offsetWidth-scroll_div.scrollLeft<=0)
      scroll_div.scrollLeft-=scroll_begin.offsetWidth
    else
      scroll_div.scrollLeft++
   },30);
  scroll_div.onmouseover=function() {clearInterval(MyMar)};
  scroll_div.onmouseout=function() {MyMar=setInterval(function (){
     if(scroll_div.offsetWidth-scroll_div.scrollLeft<=0)
      scroll_div.scrollLeft-=scroll_begin.offsetWidth
    else
      scroll_div.scrollLeft++
   },30);
}


 var scroll_div1 = document.getElementById("dex_lvfcm21");
  var scroll_begin1 = document.getElementById("dex_lvfcm2z11");
  var scroll_end1 = document.getElementById("dex_lvfcm2z21");
  scroll_end1.innerHTML=scroll_begin1.innerHTML;
  var MyMar1=null;
  MyMar1=setInterval(function(){
    if(scroll_div1.offsetWidth-scroll_div1.scrollLeft<=0)
      scroll_div1.scrollLeft-=scroll_begin1.offsetWidth
    else
      scroll_div1.scrollLeft++
   },30);
  scroll_div1.onmouseover=function() {clearInterval(MyMar1)};
  scroll_div1.onmouseout=function() {MyMar1=setInterval(function (){
     if(scroll_div1.offsetWidth-scroll_div1.scrollLeft<=0)
      scroll_div1.scrollLeft-=scroll_begin1.offsetWidth
    else
      scroll_div1.scrollLeft++
   },30);
}

var scroll_div2 = document.getElementById("dex_lvfcm22");
  var scroll_begin2 = document.getElementById("dex_lvfcm2z12");
  var scroll_end2 = document.getElementById("dex_lvfcm2z22");
  scroll_end2.innerHTML=scroll_begin2.innerHTML;
  var MyMar2=null;
  MyMar2=setInterval(function(){
    if(scroll_div2.offsetWidth-scroll_div2.scrollLeft<=0)
      scroll_div2.scrollLeft-=scroll_begin2.offsetWidth
    else
      scroll_div2.scrollLeft++
   },30);
  scroll_div2.onmouseover=function() {clearInterval(MyMar2)};
  scroll_div2.onmouseout=function() {MyMar2=setInterval(function (){
     if(scroll_div2.offsetWidth-scroll_div2.scrollLeft<=0)
      scroll_div2.scrollLeft-=scroll_begin2.offsetWidth
    else
      scroll_div2.scrollLeft++
   },30);
}

}

